package cn.ljlao.common.dto.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: LiuZhen
 * @Created: 2021/8/1 21:07
 * @Description:
 */
@Data
public class SkuEsModel {
    private Long skuId; // 商品id
    private Long spuId; // spuid
    private String skuTitle;// 商品标题
    private BigDecimal skuPrice;// 价格
    private String skuImg;//商品图片
    private Long saleCount;//销量
    private Boolean hasStock;//是否有库存
    private Long hotScore;//热门分数
    private Long brandId;//品牌id
    private Long catalogId;//分类id
    private String brandName;// 品牌名字
    private String brandImg;//品牌图片
    private String catalogName;//分类名字
    private List<Attrs> Attrs;//商品属性

    @Data
    public static class Attrs{
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
